package conf

import "github.com/spf13/viper"

type GetViperConfig struct {
	Mysql struct {
		Dsn     string
		Dialect string
	}
	Redis struct {
		Addr     string
		Password string
		DB       int
	}
}

var ViperConfigData GetViperConfig

func ViperConfig() {
	viper.SetConfigFile("conf/config.yaml")
	viper.ReadInConfig()
	viper.Unmarshal(&ViperConfigData)
}
